namespace BuildingBlocks.Infrastructure.Email;

public class EmailSettings
{
    public EmailProvider Provider { get; set; } = EmailProvider.MailKit; // 默认使用 MailKit
    public string SmtpServer { get; set; } = string.Empty;
    public int Port { get; set; }
    public bool EnableSsl { get; set; }
    public string SenderName { get; set; } = string.Empty;
    public string SenderEmail { get; set; } = string.Empty;
    public string Username { get; set; } = string.Empty;
    public string Password { get; set; } = string.Empty;

    // SendGrid
    public string SendGridApiKey { get; set; } = string.Empty;
}

public enum EmailProvider
{
    MailKit,
    SendGrid
}